﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200149F RID: 5279
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockTeleportNotify : IMessage<UnlockTeleportNotify>, IMessage, IEquatable<UnlockTeleportNotify>, IDeepCloneable<UnlockTeleportNotify>, IBufferMessage
	{
		// Token: 0x1700426E RID: 17006
		// (get) Token: 0x0600EBF5 RID: 60405 RVA: 0x00276594 File Offset: 0x00274794
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockTeleportNotify> Parser
		{
			get
			{
				return UnlockTeleportNotify._parser;
			}
		}

		// Token: 0x1700426F RID: 17007
		// (get) Token: 0x0600EBF6 RID: 60406 RVA: 0x0027659B File Offset: 0x0027479B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockTeleportNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004270 RID: 17008
		// (get) Token: 0x0600EBF7 RID: 60407 RVA: 0x002765AD File Offset: 0x002747AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockTeleportNotify.Descriptor;
			}
		}

		// Token: 0x0600EBF8 RID: 60408 RVA: 0x002765B4 File Offset: 0x002747B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockTeleportNotify()
		{
		}

		// Token: 0x0600EBF9 RID: 60409 RVA: 0x002765BC File Offset: 0x002747BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockTeleportNotify(UnlockTeleportNotify other) : this()
		{
			this.teleportId_ = other.teleportId_;
			this.entryId_ = other.entryId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EBFA RID: 60410 RVA: 0x002765ED File Offset: 0x002747ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockTeleportNotify Clone()
		{
			return new UnlockTeleportNotify(this);
		}

		// Token: 0x17004271 RID: 17009
		// (get) Token: 0x0600EBFB RID: 60411 RVA: 0x002765F5 File Offset: 0x002747F5
		// (set) Token: 0x0600EBFC RID: 60412 RVA: 0x002765FD File Offset: 0x002747FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TeleportId
		{
			get
			{
				return this.teleportId_;
			}
			set
			{
				this.teleportId_ = value;
			}
		}

		// Token: 0x17004272 RID: 17010
		// (get) Token: 0x0600EBFD RID: 60413 RVA: 0x00276606 File Offset: 0x00274806
		// (set) Token: 0x0600EBFE RID: 60414 RVA: 0x0027660E File Offset: 0x0027480E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x0600EBFF RID: 60415 RVA: 0x00276617 File Offset: 0x00274817
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockTeleportNotify);
		}

		// Token: 0x0600EC00 RID: 60416 RVA: 0x00276625 File Offset: 0x00274825
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockTeleportNotify other)
		{
			return other != null && (other == this || (this.TeleportId == other.TeleportId && this.EntryId == other.EntryId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EC01 RID: 60417 RVA: 0x00276664 File Offset: 0x00274864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TeleportId != 0U)
			{
				num ^= this.TeleportId.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EC02 RID: 60418 RVA: 0x002766BC File Offset: 0x002748BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EC03 RID: 60419 RVA: 0x002766C4 File Offset: 0x002748C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EC04 RID: 60420 RVA: 0x002766D0 File Offset: 0x002748D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.EntryId);
			}
			if (this.TeleportId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.TeleportId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EC05 RID: 60421 RVA: 0x0027672C File Offset: 0x0027492C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TeleportId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TeleportId);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EC06 RID: 60422 RVA: 0x00276784 File Offset: 0x00274984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockTeleportNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TeleportId != 0U)
			{
				this.TeleportId = other.TeleportId;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EC07 RID: 60423 RVA: 0x002767D4 File Offset: 0x002749D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EC08 RID: 60424 RVA: 0x002767E0 File Offset: 0x002749E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TeleportId = input.ReadUInt32();
					}
				}
				else
				{
					this.EntryId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005D5F RID: 23903
		private static readonly MessageParser<UnlockTeleportNotify> _parser = new MessageParser<UnlockTeleportNotify>(() => new UnlockTeleportNotify());

		// Token: 0x04005D60 RID: 23904
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D61 RID: 23905
		public const int TeleportIdFieldNumber = 8;

		// Token: 0x04005D62 RID: 23906
		private uint teleportId_;

		// Token: 0x04005D63 RID: 23907
		public const int EntryIdFieldNumber = 4;

		// Token: 0x04005D64 RID: 23908
		private uint entryId_;
	}
}
